package cn.iocoder.yudao.module.form.mysql;


import cn.iocoder.yudao.module.form.dataobject.FormEquipment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 设备采购Mapper接口
 *
 * @author ruoyi
 * @date 2022-07-13
 */
@Mapper
public interface FormEquipmentMapper
{
    /**
     * 查询设备采购
     *
     * @param equId 设备采购主键
     * @return 设备采购
     */
    public FormEquipment selectFormEquipmentByEquId(Long equId);

    /**
     * 查询设备采购列表
     *
     * @param formEquipment 设备采购
     * @return 设备采购集合
     */
    public List<FormEquipment> selectFormEquipmentList(FormEquipment formEquipment);

    /**
     * 新增设备采购
     *
     * @param formEquipment 设备采购
     * @return 结果
     */
    public int insertFormEquipment(FormEquipment formEquipment);

    /**
     * 修改设备采购
     *
     * @param formEquipment 设备采购
     * @return 结果
     */
    public int updateFormEquipment(FormEquipment formEquipment);

    /**
     * 删除设备采购
     *
     * @param equId 设备采购主键
     * @return 结果
     */
    public int deleteFormEquipmentByEquId(Long equId);

    /**
     * 批量删除设备采购
     *
     * @param equIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFormEquipmentByEquIds(Long[] equIds);
}
